<?php
return [
    'vendorPath' => dirname(dirname(__DIR__)) . '/vendor',
    'language' => 'zh-CN',
    'components' => [
        'cache' => [
            'class' => 'yii\caching\FileCache',
        ],
        // URL美化 
        // 1. frontend/web .htaccess 去掉index.php
        // 2. urlManager 配置路由格式
        'urlManager' => [
        	'class' => 'yii\web\UrlManager',
        	'enablePrettyUrl' => true,
		    'showScriptName' => false,
		    'rules' => [
		    ],
        ],
        'i18n' => [
            'translations' => [
            '*' => [
                'class' => 'yii\i18n\PhpMessageSource',
                    //'basePath' => '/common/messages',
                    'fileMap' => [
                        'common' => 'common.php',
                     ],
                ],
            ],
        ],
    ],
];
